package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.order.model.entity.CabInventoryProductRecord;
import com.wing.order.model.request.CabInventoryProductRecordForm;
import com.wing.order.model.response.CabInventoryProductRecordVO;
import com.wing.purchase.model.entity.WarehouseInventoryType;

import java.util.List;
import java.util.Map;

/**
 * 产品库存变动记录-Service
 *
 * @author
 */
public interface CabInventoryProductRecordService extends IService<CabInventoryProductRecord> {

    /**
     * 添加
     *
     * @param cabInventoryProductRecordForm
     * @return
     */
    int add(CabInventoryProductRecordForm cabInventoryProductRecordForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CabInventoryProductRecordVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CabInventoryProductRecordVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CabInventoryProductRecordVO get4appById(Long id);

    /**
     * 通过出入库类型编号查询出入库类型
     * @param code
     * @return
     */
    WarehouseInventoryType getWarehouseInventoryTypeByCode(String code);
}
